<form class="jc-search form-inline searchForm" action="{:U('Admin/Order/index')}" method="post">

    <div class="form-group">
        <label class="control-label">旅客名称:</label>
        <select class="form-control" name="seller_id" id="seller_id" style="width: 150px;">
            <option value="">全部</option>
        </select>
    </div>

    <div class="form-group">
        <label class="control-label">客户名称:</label>
        <select class="form-control" name="buyer_id" id="buyer_id" style="width: 150px;">
            <option value="">全部</option>
        </select>
    </div>

    <div class="form-group">
        <label class="control-label">订单日期:</label>
        <div class="input-group date" id="order_from_date">
            <input type='text' value="<if condition="$order_from_date">{$order_from_date|date="Y-m-d",###}</if>" name="order_from_date" class="form-control" data-date-format="yyyy-mm-dd" style="width:125px;" />
            <div class="input-group-addon">
                <span class="glyphicon glyphicon-calendar"></span>
            </div>
        </div>
        -
        <div class="input-group date" id="order_to_date">
            <input type='text' value="<if condition="$order_to_date">{$order_to_date|date="Y-m-d",###}</if>" name="order_to_date" class="form-control" data-date-format="yyyy-mm-dd" style="width:125px;" />
            <div class="input-group-addon">
                <span class="glyphicon glyphicon-calendar"></span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label">订单类型:</label>
        <select class="form-control" name="type">
            <option value="" <if condition="$type eq ''">selected</if>>全部</option>
            <option value="1" <if condition="$type eq '1'">selected</if>>货运订单</option>
            <option value="2" <if condition="$type eq '2'">selected</if>>查询联系方式订单</option>
        </select>
    </div>

    <div class="form-group">
        <label class="control-label">订单状态:</label>
        <select class="form-control" name="state">
            <option value="" <if condition="$state eq ''">selected</if>>全部</option>
            <option value="0" <if condition="$state eq '0'">selected</if>>已抢单</option>
            <option value="1" <if condition="$state eq '1'">selected</if>>已接单</option>
            <option value="2" <if condition="$state eq '2'">selected</if>>进行中</option>
            <option value="3" <if condition="$state eq '3'">selected</if>>已确认</option>
            <option value="4" <if condition="$state eq '4'">selected</if>>已尽力</option>
            <option value="5" <if condition="$state eq '5'">selected</if>>已取消</option>
            <option value="6" <if condition="$state eq '6'">selected</if>>已取消 - 未完成</option>
            <option value="7" <if condition="$state eq '7'">selected</if>>已取消 - 拒绝接单</option>
            <option value="8" <if condition="$state eq '8'">selected</if>>已完成</option>
            <option value="9" <if condition="$state eq '9'">selected</if>>已删除</option>

        </select>
    </div>

    <input class="btn btn-search" type="submit" value="搜索" />
</form>